package com.controller;


import com.Service.BuildcardService;
import com.model.pojo.Buildcard;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class BuildcardController {
    @Resource
    private BuildcardService buildcardService;
    @RequestMapping("/buildcard")
    public String buildcard() {

        return "buildcardy";
    }

    @RequestMapping("/addcard")
    public String addcard(Buildcard buildcard) {
      buildcardService.setcard(buildcard);

        return "buildcardy";
    }

}
